package Command;

/**
 * EngineForward
 * @author Danny
 *
 */
public class EngineForward extends Command {
	
	/**
	 * Constructor
	 */
	public EngineForward()
	{
		super();
	}
	/**
	 * execute
	 * Execute the command.
	 */
	@Override
	public void execute() {
		// Check connection
		if(!checkConnection())
		{
			System.out.println("Geen bt verbinding");
			return;
		}
		// Engine, Forward, checksum
		bt.sendLine("1,2,3");
	}
	/**
	 * getCommandString
	 * @return String - Command
	 */
	public String getCommandString()
	{
		return "1,2,3";
	}
	/**
	 * redo
	 * Do the command over!
	 */
	@Override
	public void redo() {
		execute();

	}
	/**
	 * undo
	 * Turns engine off
	 */
	@Override
	public void undo() {
		new EngineOut().execute();
	}
}
